/**
 * 
 */
package com.feib.stms.dao.jdbc.rowmapper;

import org.springframework.jdbc.core.RowMapper;

import com.feib.stms.dao.PreDesignatedAccountDao;
import com.feib.stms.model.PreDesignatedAccount;
import com.feib.stms.util.SpringContextUtil;

/**
 * @author Karl Chen
 *
 */
public class PreDesignatedAccountRowMapper extends BaseRowMapper<PreDesignatedAccount> implements RowMapper<PreDesignatedAccount> {

	private static final long serialVersionUID = -1521584353440188552L;	
	
	private PreDesignatedAccountDao preDesignatedAccountDao;

	public PreDesignatedAccountRowMapper(){
		super(PreDesignatedAccount.class);
	}
	
	public PreDesignatedAccountRowMapper(PreDesignatedAccountDao preDesignatedAccountDao){
		super(PreDesignatedAccount.class);
		this.preDesignatedAccountDao = preDesignatedAccountDao;
		
		if(null == this.preDesignatedAccountDao){
			preDesignatedAccountDao = (PreDesignatedAccountDao)SpringContextUtil.getBean("preDesignatedAccountDao");
		}
	}
}
